package com.tencent.miniproject.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;

import com.tencent.miniproject.R;
import com.tencent.miniproject.base.BaseActivity;
import com.tencent.miniproject.constants.Constant;
import com.tencent.miniproject.fragment.UserBillFragment;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class OthersUserBillActivity extends BaseActivity {

    @BindView(R.id.fl_main)
    FrameLayout flMain;
    @BindView(R.id.iv_back)
    ImageView ivBack;

    @Override
    protected int setLayoutResID() {
        return R.layout.activity_others_user_bill;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initView() {
        int userId = getIntent().getIntExtra("userId", 0);
        UserBillFragment fragment = UserBillFragment.newInstance(Constant.FRAGMENT_OTHER_BILL);
        fragment.setUserId(userId);
        getSupportFragmentManager().beginTransaction()
                .add(R.id.fl_main, fragment).commit();
    }

    @Override
    protected void initListener() {

    }

    @OnClick(R.id.iv_back)
    public void onClick() {
        finish();
    }
}
